<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script language="javascript" type="text/javascript">
function fileDelete(a, b){
	if(confirm('정말 삭제 하시겠습니까?')){
		location.href="fileDelete.html?pr_key=" + a + "&&file_name=" + b; 
	}
}
</script>
<div id="main" class="entry-content">
<center><h1><b>이력서</b> & <b>포트폴리오</b></h1></center>
</div>
<div id="main" class="site-main">
	<div class="entry-content">
		<center>
			<c:if test="${fileList == '[]' }">
				등록된 파일이 없습니다.<br>
				파일을 등록해 주십시오.<br><br><br><br><br><br>
			</c:if>
			<div class="content" id="theme">
			<!-- 리스트 뽑아주는 부분 반복 시킬 부분임 -->
			<c:forEach var="list" items="${fileList }" varStatus="status">
				${list.file_name}
				<a href='fileDown.html?filename=${list.file_name }' class="more-button">
					<i class="icon-download"></i>
				</a>
				<a href='javascript:fileDelete("${list.pr_key }", "${list.file_name }")' class="more-button">
					<i class="icon-remove"></i>
			    </a>
			    <br><br>
			</c:forEach>
			</div>
			<!-- 여기까지 반복 부분 -->
			<div class="panel-grid" id="pg-home-0">
				<div class="button" id="portfolio">
					<a href="fileRegView.html"><input type="button" value="등록"></a>
				</div>
			</div>
			<div class="panel-grid" id="pg-home-0">
				<div class="hit" id="portfolio">
					추천 회사 List : 
						<c:forEach var="list" items="${hitList }">
								[ <a href="${list.link }" target="_blank"><b>${list.name }</b></a> ]&emsp;
						</c:forEach>
				</div>
			</div>
		</center>
	</div>
</div>